package gui.linkFinder;

import java.io.IOException;

import javax.swing.JEditorPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

public class BottomPanel extends JPanel {
	private static final long serialVersionUID = 1L;

	protected JEditorPane pane;
	
	public void showHTMLPage(String url){
		try {
			 
			pane = new JEditorPane(url);
			JScrollPane spane = new JScrollPane(pane);
			spane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
			this.pane.setContentType("text/html");
			this.add(spane);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
}
